/**
 * 
 */
package code;

/**
 * @author smriti
 *
 */
public class FileStatistics {

	private int pagesAllocated = 0;
	private int pagesDeallocated = 0;
	private  int readCounter = 0;
	private  int writeCounter = 0;
	private  int no_of_files = 0;
//	private  int pagesPinned = 0;
//	private  int pagesUnpinned = 0;
//	private  int pagesLoaded = 0;
//	private  int pagesUnLoaded = 0;
	
	public  int getPagesAllocated() {
		return pagesAllocated;
	}

	public  void setPagesAllocated(int pagesAllocated) {
		this.pagesAllocated = pagesAllocated;
	}

	public  int getPagesDeallocated() {
		return pagesDeallocated;
	}

	public  void setPagesDeallocated(int pagesDeallocated) {
		this.pagesDeallocated = pagesDeallocated;
	}

	public  int getReadCounter() {
		return readCounter;
	}

	public  void setReadCounter(int readCounter) {
		this.readCounter = readCounter;
	}

	public  int getWriteCounter() {
		return writeCounter;
	}

	public  void setWriteCounter(int writeCounter) {
		this.writeCounter = writeCounter;
	}

	public  int getNo_of_files() {
		return no_of_files;
	}

	public  void setNo_of_files(int no_of_files) {
		this.no_of_files = no_of_files;
	}

	public String getStats(){
		StringBuffer buf = new StringBuffer(1000);
		buf.append("[Pages Allocated: " + pagesAllocated+"]");
		buf.append("[Pages Deallocated: " + pagesDeallocated+"]");
		buf.append("[Read Counter: " + readCounter+"]");
		buf.append("[Write Counter: " + writeCounter+"]");
		buf.append("[No of Files: " + no_of_files+"]");
		return buf.toString();
	}
	
	
}
